package com.common.retrofit.methods;

import com.common.retrofit.base.BaseMethods;
import com.common.retrofit.entity.bean.DianZanBean;
import com.common.retrofit.service.HaiNingService;

import rx.Observable;
import rx.Subscriber;

public class DianzanListMethods extends BaseMethods {

    private static DianzanListMethods m_ins = null;

    public static DianzanListMethods getInstance() {
        if (m_ins == null) {
            synchronized (DianzanListMethods.class) {
                if (m_ins == null) {
                    m_ins = new DianzanListMethods();
                }
            }
        }
        return m_ins;
    }

    @Override
    protected String getHttpUrl() {
        return "Personal/";
    }

    private HaiNingService initService() {
        return getRetrofit().create(HaiNingService.class);
    }


    public void likes_lsit(Subscriber<DianZanBean> subscriber,
                     int uid,String hashid ,String id ,int page ) {
        Observable observable = initService().likes_lsit(System.currentTimeMillis()+"",
                "e156342290889ee0103bad5f23f3fef5",uid,hashid,id,page
        );
        toSubscribe(observable, subscriber);
    }
}
